#ifndef _PORTING_H_
#define _PORTING_H_

#include "ff.h"
#include "oal.h"

#ifdef WIN32

#include <stdio.h> 
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MALLOC malloc
#define FREE free
#define Debug_printf(x, format, ...) \
do { \
    printf("-" format "", ##__VA_ARGS__ ); \
}while(0)
#else
#include "sys_inc.h"
#include "sys_types.h"

extern int sprintf(
        char*       const _Buffer,
        char const* const _Format,
        ...);
#define MALLOC OAL_malloc
#define FREE OAL_free

#endif

#endif
